From: Jasper St. Pierre Date: Sun, 26 Aug 2012 01:14:34 +0000 (-0300) Subject: shell-app: Fix a memory leak in the running state X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6047 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=785ab8192b93c4873d694d866bbe7655067cb492;p=gnome-shell.git shell-app: Fix a memory leak in the running state We need to free two strings that we allocated here. https://bugzilla.gnome.org/show_bug.cgi?id=682710 --- diff --git a/src/shell-app.c b/src/shell-app.c index 5b2a21e8a..51a252498 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -1281,6 +1281,8 @@ unref_running_state (ShellAppRunningState *state) g_clear_object (&state->remote_menu); g_clear_object (&state->muxer); + g_clear_pointer (&state->unique_bus_name, g_free); + g_clear_pointer (&state->remote_menu, g_free); g_slice_free (ShellAppRunningState, state); }